define([
	'jquery',
	'models/entry',
	'services/request'
], function($, EntryModel, Request){
	var EntryProvider = {
		get: function(id, success, error){
			Request.send({
				method: ['entries', 'index'],
				methodParams: [id],
				api: [],
				post: {},
				success: function(json) {
					success(new EntryModel(json));
				},
				error: error
			});
		}
	};
	
	return EntryProvider;
});